<%@page import="tx.bjdacp.model.*" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/commons/taglibs.jsp" %>

<rapid:override name="head">
	<title><%=DrugSellUnit.TABLE_ALIAS%>信息</title>
		<link href="<c:url value="/widgets/simpletable/simpletable.css"/>" type="text/css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="<c:url value="/widgets/jquery-easyui/themes/default/easyui.css"/>">
	<link rel="stylesheet" type="text/css" href="<c:url value="/widgets/jquery-easyui/themes/icon.css"/>">
	<script type="text/javascript" src="<c:url value="/widgets/jquery-easyui/jquery.easyui.min.js"/>"></script>

</rapid:override>

<rapid:override name="content">
<s:bean name="tx.bjdacp.service.ZoneManager" var="zoneManager" ></s:bean>
<s:bean name="tx.bjdacp.service.DataDictManager" var="dataDictManager" ></s:bean>
	<s:form action="/pages/DrugSellUnit/list.do" method="get">
		<input type="button" value="返回列表" onclick="window.location='${ctx}/pages/DrugSellUnit/list.do'"/>
		<input type="button" value="后退" onclick="history.back();"/>

		<s:hidden name="drugSellUnitId" id="drugSellUnitId" value="%{model.drugSellUnitId}"/>

		<table class="formTable">
			<tr>
				<td class="tdLabel"><%=DrugSellUnit.ALIAS_FILE_NUMBER%></td>
				<td><s:property value="%{model.fileNumber}" /></td>
			</tr>
			<tr>
				<td class="tdLabel">所在镇</td>
				<td><s:property value="%{model.zone.zoneName}" /></td>
			</tr>
			<tr>
				<td class="tdLabel"><%=DrugSellUnit.ALIAS_UNIT_NAME%></td>
				<td><s:property value="%{model.unitName}" /></td>
			</tr>
			<tr>
				<td class="tdLabel"><%=DrugSellUnit.ALIAS_REGIST_ADDRESS%></td>
				<td><s:property value="%{model.registAddress}" /></td>
			</tr>
			<tr>
				<td class="tdLabel"><%=DrugSellUnit.ALIAS_ARTIFICIAL_PERSON%></td>
				<td><s:property value="%{model.artificialPerson}" /></td>
			</tr>
			<tr>
				<td class="tdLabel"><%=DrugSellUnit.ALIAS_UNIT_PRINCIPAL%></td>
				<td><s:property value="%{model.unitPrincipal}" /></td>
			</tr>
			<tr>
				<td class="tdLabel"><%=DrugSellUnit.ALIAS_QUALITY_PRINCIPAL%></td>
				<td><s:property value="%{model.qualityPrincipal}" /></td>
			</tr>
			<tr>
				<td class="tdLabel"><%=DrugSellUnit.ALIAS_APOTHECARY%></td>
				<td><s:property value="%{model.apothecary}" /></td>
			</tr>
			<tr>
				<td class="tdLabel"><%=DrugSellUnit.ALIAS_APOTHECARY2%></td>
				<td><s:property value="%{model.apothecary2}" /></td>
			</tr>
			<tr>
				<td class="tdLabel"><%=DrugSellUnit.ALIAS_APOTHECARY_CHINA%></td>
				<td><s:property value="%{model.apothecaryChina}" /></td>
			</tr>
			<tr>
				<td class="tdLabel"><%=DrugSellUnit.ALIAS_SELL_MODE%></td>
				<td><s:property value="%{model.sellMode}" /></td>
			</tr>
			<tr>
				<td class="tdLabel"><%=DrugSellUnit.ALIAS_SELL_AREA%></td>
				<td><s:property value="%{model.sellArea}" /></td>
			</tr>
			<tr>
				<td class="tdLabel"><%=DrugSellUnit.ALIAS_STORAGE_ADDRESS%></td>
				<td><s:property value="%{model.storageAddress}" /></td>
			</tr>
			<tr>
				<td class="tdLabel"><%=DrugSellUnit.ALIAS_LICENCE_CODE%></td>
				<td><s:property value="%{model.licenceCode}" /></td>
			</tr>
			<tr>
				<td class="tdLabel"><%=DrugSellUnit.ALIAS_UNIT_FOUND_DATE%></td>
				<td><s:property value="%{model.unitFoundDateString}" /></td>
			</tr>
			<tr>
				<td class="tdLabel"><%=DrugSellUnit.ALIAS_LICENCE_GIVE_DATE%></td>
				<td><s:property value="%{model.licenceGiveDateString}" /></td>
			</tr>
			<tr>
				<td class="tdLabel"><%=DrugSellUnit.ALIAS_LICENCE_EXPIRY_DATE%></td>
				<td><s:property value="%{model.licenceExpiryDateString}" /></td>
			</tr>
			<tr>
				<td class="tdLabel"><%=DrugSellUnit.ALIAS_GSP_CODE%></td>
				<td><s:property value="%{model.gspCode}" /></td>
			</tr>
			<tr>
				<td class="tdLabel"><%=DrugSellUnit.ALIAS_GSP_GIVE_DATE%></td>
				<td><s:property value="%{model.gspGiveDateString}" /></td>
			</tr>
			<tr>
				<td class="tdLabel"><%=DrugSellUnit.ALIAS_GSP_EXPIRY_DATE%></td>
				<td><s:property value="%{model.gspExpiryDateString}" /></td>
			</tr>
			<tr>
				<td class="tdLabel"><%=DrugSellUnit.ALIAS_IS_LOGOUT%></td>
				<td><s:property value="%{model.isLogout}" /></td>
			</tr>
			<tr>
				<td class="tdLabel"><%=DrugSellUnit.ALIAS_LOGOUT_DATE%></td>
				<td><s:property value="%{model.logoutDate}" /></td>
			</tr>
			<tr>
				<td class="tdLabel"><%=DrugSellUnit.ALIAS_MOBEL_PHONE%></td>
				<td><s:property value="%{model.mobelPhone}" /></td>
			</tr>
			<tr>
				<td class="tdLabel"><%=DrugSellUnit.ALIAS_PHONE%></td>
				<td><s:property value="%{model.phone}" /></td>
			</tr>
				<s:radio label="%{@tx.bjdacp.model.DrugSellUnit@ALIAS_IS_TOUR_DRUGSTORE}" list="#dataDictManager.findAllByTypeBoolean()" key="isTourDrugstore"   listValue="ddName" listKey="ddValue"/>


				<s:radio label="%{@tx.bjdacp.model.DrugSellUnit@ALIAS_IS_SELL_CHINESE_MEDICINE}" list="#dataDictManager.findAllByTypeBoolean()" key="isSellChineseMedicine"   listValue="ddName" listKey="ddValue"/>

		<s:radio label="%{@tx.bjdacp.model.DrugSellUnit@ALIAS_IS_OTCUNIT}"  list="#dataDictManager.findAllByTypeBoolean()" key="isOtcunit"   listValue="ddName" listKey="ddValue"/>


	<s:radio label="%{@tx.bjdacp.model.DrugSellUnit@ALIAS_IS_RESEND_LICENSE}" list="#dataDictManager.findAllByTypeBoolean()" key="isResendLicense"   listValue="ddName" listKey="ddValue"/>
	<s:radio  label="%{@tx.bjdacp.model.DrugSellUnit@ALIAS_IS_STOP}" list="#dataDictManager.findAllByTypeBoolean()" key="isStop" listValue="ddName" listKey="ddValue" />

		</table>

		<input type="button" value="返回列表" onclick="window.location='${ctx}/pages/DrugSellUnit/list.do'"/>
		<input type="button" value="后退" onclick="history.back();"/>
		<br/><br/>
		<a id="add" href="${ctx}/pages/SuperviseInfo/create.do?drugSellUnitId=${model.drugSellUnitId}" class="easyui-linkbutton" iconCls="icon-add" target="_blank">添加监督检查情况</a>
		<a href="${ctx}/pages/SuperviseInfo/list.do?drugSellUnitId=${model.drugSellUnitId}" class="easyui-linkbutton" iconCls="icon-search" target="_blank">查看监督检查情况</a>
		<a id="add" href="${ctx}/pages/SuperviseInfo/createAuditTrail.do?drugSellUnitId=${model.drugSellUnitId}" class="easyui-linkbutton" iconCls="icon-add" target="_blank">添加跟踪检查情况</a>
		<a href="${ctx}/pages/SuperviseInfo/list.do?drugSellUnitId=${model.drugSellUnitId}&isAuditTrail=true" class="easyui-linkbutton" iconCls="icon-search" target="_blank">查看跟踪检查情况</a>
		<a id="add" href="${ctx}/pages/SampleInfo/create.do?drugSellUnitId=${model.drugSellUnitId}" class="easyui-linkbutton" iconCls="icon-add" target="_blank">添加抽样情况</a>
		<a href="${ctx}/pages/SampleInfo/list.do?drugSellUnitId=${model.drugSellUnitId}" class="easyui-linkbutton" iconCls="icon-search" target="_blank">查看抽样情况</a>
		<a id="add" href="${ctx}/pages/GspInfo/create.do?drugSellUnitId=${model.drugSellUnitId}" class="easyui-linkbutton" iconCls="icon-add" target="_blank">添加GSP认证情况</a>
		<a href="${ctx}/pages/GspInfo/list.do?drugSellUnitId=${model.drugSellUnitId}" class="easyui-linkbutton" iconCls="icon-search" target="_blank">查看GSP认证情况</a>
		<a id="add" href="${ctx}/pages/ResendLicLog/create.do?drugSellUnitId=${model.drugSellUnitId}&licType=licence" class="easyui-linkbutton" iconCls="icon-add" target="_blank">添加换证情况</a>
		<a href="${ctx}/pages/ResendLicLog/list.do?drugSellUnitId=${model.drugSellUnitId}" class="easyui-linkbutton" iconCls="icon-search" target="_blank">查看换证情况</a>
		<a id="add" href="${ctx}/pages/ArchiveCatalog/create.do?drugSellUnitId=${model.drugSellUnitId}" class="easyui-linkbutton" iconCls="icon-add" target="_blank">添加药监档案案卷目录</a>
<a href="${ctx}/pages/ArchiveCatalog/list.do?drugSellUnitId=${model.drugSellUnitId}" class="easyui-linkbutton" iconCls="icon-search" target="_blank">查看药监档案案卷目录</a>
	</s:form>
	企业变更记录
	<div class="gridTable">


		<table width="100%"  border="0" cellspacing="0" class="gridBody">
		  <thead>

			  <tr>
				<th style="width:1px;"> &nbsp;</th>

				<th sortColumn="user_info_id" >操作人</th>
				<th sortColumn="unit_name" ><%=DrugSellUnitModifyLog.ALIAS_UNIT_NAME%></th>
				<th sortColumn="regist_address" ><%=DrugSellUnitModifyLog.ALIAS_REGIST_ADDRESS%></th>
				<th sortColumn="artificial_person" ><%=DrugSellUnitModifyLog.ALIAS_ARTIFICIAL_PERSON%></th>
				<th sortColumn="unit_principal" ><%=DrugSellUnitModifyLog.ALIAS_UNIT_PRINCIPAL%></th>
				<th sortColumn="quality_principal" ><%=DrugSellUnitModifyLog.ALIAS_QUALITY_PRINCIPAL%></th>
				<th sortColumn="apothecary" ><%=DrugSellUnitModifyLog.ALIAS_APOTHECARY%></th>
				<th sortColumn="apothecary2" ><%=DrugSellUnitModifyLog.ALIAS_APOTHECARY2%></th>
				<th sortColumn="apothecaryChina" ><%=DrugSellUnitModifyLog.ALIAS_APOTHECARY_CHINA%></th>
				<th sortColumn="sell_mode" ><%=DrugSellUnitModifyLog.ALIAS_SELL_MODE%></th>
				<th sortColumn="sell_area" ><%=DrugSellUnitModifyLog.ALIAS_SELL_AREA%></th>
				<th sortColumn="storage_address" ><%=DrugSellUnitModifyLog.ALIAS_STORAGE_ADDRESS%></th>
				<th sortColumn="licence_code" ><%=DrugSellUnitModifyLog.ALIAS_LICENCE_CODE%></th>
				<th sortColumn="unit_found_date" ><%=DrugSellUnitModifyLog.ALIAS_UNIT_FOUND_DATE%></th>
				<th sortColumn="licence_give_date" ><%=DrugSellUnitModifyLog.ALIAS_LICENCE_GIVE_DATE%></th>
				<th sortColumn="licence_expiry_date" ><%=DrugSellUnitModifyLog.ALIAS_LICENCE_EXPIRY_DATE%></th>
				<th sortColumn="gsp_code" ><%=DrugSellUnitModifyLog.ALIAS_GSP_CODE%></th>
				<th sortColumn="gsp_give_date" ><%=DrugSellUnitModifyLog.ALIAS_GSP_GIVE_DATE%></th>
				<th sortColumn="gsp_expiry_date" ><%=DrugSellUnitModifyLog.ALIAS_GSP_EXPIRY_DATE%></th>
				<th sortColumn="mobel_phone" ><%=DrugSellUnitModifyLog.ALIAS_MOBEL_PHONE%></th>
				<th sortColumn="phone" ><%=DrugSellUnitModifyLog.ALIAS_PHONE%></th>
				<th sortColumn="modify_date" ><%=DrugSellUnitModifyLog.ALIAS_MODIFY_DATE%></th>

			  </tr>

		  </thead>
		  <tbody>
		  	  <c:forEach items="${model.drugSellUnitModifyLogs}" var="item" varStatus="status">

			  <tr class="${status.count % 2 == 0 ? 'odd' : 'even'}">
				<td>${1 + status.index}</td>
				<td><c:out value='${item.userInfo.realName}'/>&nbsp;</td>
				<td><c:out value='${item.unitName}'/>&nbsp;</td>
				<td><c:out value='${item.registAddress}'/>&nbsp;</td>
				<td><c:out value='${item.artificialPerson}'/>&nbsp;</td>
				<td><c:out value='${item.unitPrincipal}'/>&nbsp;</td>
				<td><c:out value='${item.qualityPrincipal}'/>&nbsp;</td>
				<td><c:out value='${item.apothecary}'/>&nbsp;</td>
				<td><c:out value='${item.apothecary2}'/>&nbsp;</td>
				<td><c:out value='${item.apothecaryChina}'/>&nbsp;</td>
				<td><c:out value='${item.sellMode}'/>&nbsp;</td>
				<td><c:out value='${item.sellArea}'/>&nbsp;</td>
				<td><c:out value='${item.storageAddress}'/>&nbsp;</td>
				<td><c:out value='${item.licenceCode}'/>&nbsp;</td>
				<td><c:out value='${item.unitFoundDateString}'/>&nbsp;</td>
				<td><c:out value='${item.licenceGiveDateString}'/>&nbsp;</td>
				<td><c:out value='${item.licenceExpiryDateString}'/>&nbsp;</td>
				<td><c:out value='${item.gspCode}'/>&nbsp;</td>
				<td><c:out value='${item.gspGiveDateString}'/>&nbsp;</td>
				<td><c:out value='${item.gspExpiryDateString}'/>&nbsp;</td>
				<td><c:out value='${item.mobelPhone}'/>&nbsp;</td>
				<td><c:out value='${item.phone}'/>&nbsp;</td>
				<td><c:out value='${item.modifyDateString}'/>&nbsp;</td>

			  </tr>

		  	  </c:forEach>
		  </tbody>
		</table>


	</div>
</rapid:override>

<%-- jsp模板继承,具体使用请查看: http://code.google.com/p/rapid-framework/wiki/rapid_jsp_extends --%>
<%@ include file="base.jsp" %>